#include<stdio.h>
#include<stdlib.h>
#include<sys/mman.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

int main()
{
	int fd;
	void *addr;
	fd = open("./test.txt",O_RDONLY);
	addr = mmap(NULL,10,PROT_READ,MAP_SHARED,fd,0);
	printf("%s\n",(char *)addr);

}
